package com.cy.ui;

import com.cy.factory.BeanFactory;
import com.cy.service.AccountService;
import com.cy.service.impl.AccountServiceImpl;

/**
 * @Author : 残影
 * @Date: 2021-03-08 15:33
 */
public class Client {
    public static void main(String[] args) {
        //AccountService as = new AccountServiceImpl();
        for (int i = 0; i < 5; i++) {
            AccountService as = (AccountService) BeanFactory.getBean("accountService");
            System.out.println(as);
            as.saveAccount();
        }
    }
}
